package com.devnn.util;

import android.content.Context;
import android.content.SharedPreferences;

public class SharePrefUtil {
	private static final String APP_DATA="APP_DATA";
	public static  void saveString(Context context,String key,String value){
		SharedPreferences.Editor editor=context.getSharedPreferences(APP_DATA, Context.MODE_PRIVATE).edit();
		editor.putString(key, value);
		editor.commit();
	}
	public static String getString(Context context,String key){
		SharedPreferences sharedPreferences=context.getSharedPreferences(APP_DATA, Context.MODE_PRIVATE);
		return sharedPreferences.getString(key,null);
	}
}
